﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: WordReplaceItemEntity.cs
// 修改时间：2020-9-8 10:40:14
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：WordReplaceItem 的实体类.
	/// </summary>
	[Table("WordReplaceItem")]
	public partial class WordReplaceItemEntity
	{
		#region Properties
		private int? _itemID = 0;
		/// <summary>
		/// 字符替换Id(主键)
		/// </summary>
		[Column("ItemID",TypeName="int")]
		[Key]
		public int? ItemID
		{
			get {return _itemID;}
			set {_itemID = value;}
		}
		
		private System.String _sourceWord = string.Empty;
		/// <summary>
		/// 字符替换目标
		/// </summary>
		[Column("SourceWord",TypeName="nvarchar(250)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String SourceWord
		{
			get {return _sourceWord;}
			set {_sourceWord = value;}
		}
		
		private System.String _targetWord = string.Empty;
		/// <summary>
		/// 字符替换替换后地址
		/// </summary>
		[Column("TargetWord",TypeName="nvarchar(250)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String TargetWord
		{
			get {return _targetWord;}
			set {_targetWord = value;}
		}
		
		private int? _replaceType = 0;
		/// <summary>
		/// 字符替换类型
		/// </summary>
		[Column("ReplaceType",TypeName="int")]
		public int? ReplaceType
		{
			get {return _replaceType;}
			set {_replaceType = value;}
		}
		
		private int? _scopesType = 0;
		/// <summary>
		/// 过滤字符替换类型
		/// </summary>
		[Column("ScopesType",TypeName="int")]
		public int? ScopesType
		{
			get {return _scopesType;}
			set {_scopesType = value;}
		}
		
		private int? _replaceTimes = 0;
		/// <summary>
		/// 字符替换替换次数
		/// </summary>
		[Column("ReplaceTimes",TypeName="int")]
		public int? ReplaceTimes
		{
			get {return _replaceTimes;}
			set {_replaceTimes = value;}
		}
		
		private int? _priority = 0;
		/// <summary>
		/// 字符替换优先级
		/// </summary>
		[Column("Priority",TypeName="int")]
		public int? Priority
		{
			get {return _priority;}
			set {_priority = value;}
		}
		
		private System.Boolean _isNewOpen = false;
		/// <summary>
		/// 字符替换打开模式
		/// </summary>
		[Column("IsNewOpen",TypeName="bit")]
		public System.Boolean IsNewOpen
		{
			get {return _isNewOpen;}
			set {_isNewOpen = value;}
		}
		
		private System.Boolean _isEnabled = false;
		/// <summary>
		/// 字符替换是否启用
		/// </summary>
		[Column("IsEnabled",TypeName="bit")]
		public System.Boolean IsEnabled
		{
			get {return _isEnabled;}
			set {_isEnabled = value;}
		}
		
		private System.String _title = string.Empty;
		/// <summary>
		/// 字符替换后元素的Title属性
		/// </summary>
		[Column("Title",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Title
		{
			get {return _title;}
			set {_title = value;}
		}
		
		#endregion
	}
}
